# -*- coding: utf-8 -*-

"""
DateTime   : 2021/04/06 10:39
Author     : ZhangYafei
Description: 
"""
import requests

url = 'https://bird.ioliu.cn/v2'

start = 1
count = 12

params = {'url': f'http://wallpaper.apc.360.cn/index.php?c=WallPaper&start={start}&count={count}&from=360chrome&a=getAppsByOrder&order=create_time'}


response = requests.get(url=url, params=params)
result = response.json()

for image_info in result['data']:
    uid = image_info['id']
    image_url = image_info['url']
    tags = image_info['tag'].replace('_category_', '').replace('_全部_', '').strip('_ ').replace(' ', '')
    size = image_info['resolution'].replace('x', '_')
    print(image_url, tags, size, uid)

